package com.inews.business.entity;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import javax.persistence.Version;
@MappedSuperclass
public class TblBaseEntity {
	/** 版本号. */
	@Version
	private Long version;
	
	/** 创建时间. */
	@Column(name="create_time", length=14)
	private String createTime;
	
	/** 创建用户. */
	
	@ManyToOne(cascade={CascadeType.REFRESH}, optional=false)    
	@JoinColumn(name="create_user_id")
	private TblSysUser createUser;
	
	/** 备注. */
	@Column(length=150)
	private String remark;
	
	/** 最后更新用户. */
	@ManyToOne(cascade={CascadeType.REFRESH}, optional=false)    
	@JoinColumn(name="last_upd_user_id")
	private TblSysUser lastUpdUser;
	
	/** 最后更新操作. */
	@Column(name="last_upd_des", nullable=false, length=10)
	private String lastUpdDes;
	
	/** 最后更新时间. */
	@Column(name="last_upd_time", nullable=false, length=14)
	private String lastUpdTime;
	
	/** 保留域1. */
	@Column(length=150)
	private String reserved1;
	
	/** 保留域2. */
	@Column(length=150)
	private String reserved2;
	

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public TblSysUser getCreateUser() {
		return createUser;
	}

	public void setCreateUser(TblSysUser createUser) {
		this.createUser = createUser;
	}
	

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}


	public TblSysUser getLastUpdUser() {
		return lastUpdUser;
	}

	public void setLastUpdUser(TblSysUser lastUpdUser) {
		this.lastUpdUser = lastUpdUser;
	}

	
	public String getLastUpdDes() {
		return lastUpdDes;
	}

	public void setLastUpdDes(String lastUpdDes) {
		this.lastUpdDes = lastUpdDes;
	}

	
	public String getLastUpdTime() {
		return lastUpdTime;
	}

	public void setLastUpdTime(String lastUpdTime) {
		this.lastUpdTime = lastUpdTime;
	}

	
	public String getReserved1() {
		return reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}


	public String getReserved2() {
		return reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

}
